zeek41.html and zeek41.css

 zeek41.css

.grid{displayflex;flex-directioncolumn;flex-wrapwrap;}
.Explain{font-size10px;}



zeek41.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Grid Rows</title>
    <style>
        body{font-family'Playball', cursive;}
        .grid{displaygrid;
        grid-template-rows1fr 1fr 4fr;
    grid-auto-rows3fr;
grid-template-columns1fr 8fr 1fr;
grid-gap1rem;
}
        .box{background-colorrgb(145231145);colorrgb(0097);
borderrgb(25500solid 1px;}
        .Explain{text-aligncenter;}
    </style>
     <link rel="stylesheet" media="screen and (max-width:1113px)" href="zeek41.css">
     <link rel="preconnect" href="https://fonts.googleapis.com">

</head>
<body>
    <div class="grid">
        <div class="box">This is item-1</div>
        <div class="box">This is item-2</div>
        <div class="box">This is item-3</div>
        <div class="box">This is item-4</div>
        <div class="box">This is item-5</div>
        <div class="box">This is item-6</div>
        <div class="box">This is item-7</div>
        <div class="box">This is item-8</div>
        <div class="box">This is item-9</div>
        <div class="box">This is item-10</div>
        <div class="box">This is item-11</div>
        <div class="box">This is item-12</div>
    </div>
    <div class="Explain">
        <h1>ROWS AND COLUMNS</h1>
        <p>Item{1,2,3} are in <strong>same ROW</strong> of size 1r <br>
 Item  {2,5,8,11} are in <strong> same COLUMN </strong> size 8r</p>
        <p>ROW HORIZONTAL <br><br> <br>  COLUMN VERTICAL</p>
        <h1>This page is responsive at 1113px.</h1>

    </div>
    
</body>
</html>

Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS